.class public Lcom/waiqin365/lightapp/im/gallery/a/a;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Ljava/util/ArrayList;

.field private c:Lcom/waiqin365/lightapp/im/gallery/a/d;

.field private d:Landroid/view/animation/Animation;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/ArrayList;)V
    .locals 1

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/gallery/a/a;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/lightapp/im/gallery/a/a;->b:Ljava/util/ArrayList;

    new-instance v0, Lcom/waiqin365/lightapp/im/gallery/a/d;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/im/gallery/a/d;-><init>(Lcom/waiqin365/lightapp/im/gallery/a/a;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/a/a;->c:Lcom/waiqin365/lightapp/im/gallery/a/d;

    const v0, 0x7f040026

    invoke-static {p1, v0}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/a/a;->d:Landroid/view/animation/Animation;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/gallery/a/a;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/a/a;->b:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/im/gallery/a/a;)Landroid/view/animation/Animation;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/a/a;->d:Landroid/view/animation/Animation;

    return-object v0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/im/gallery/a/a;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/a/a;->a:Landroid/content/Context;

    return-object v0
.end method


# virtual methods
.method public a(I)Lcom/waiqin365/lightapp/im/gallery/a/k;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/a/a;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/gallery/a/k;

    return-object v0
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/a/a;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public synthetic getItem(I)Ljava/lang/Object;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/im/gallery/a/a;->a(I)Lcom/waiqin365/lightapp/im/gallery/a/k;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 6

    if-nez p2, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/a/a;->a:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f030162

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    new-instance v1, Lcom/waiqin365/lightapp/im/gallery/a/h;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/im/gallery/a/h;-><init>(Lcom/waiqin365/lightapp/im/gallery/a/a;)V

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    const v0, 0x7f0c07d6

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/im/gallery/a/h;->a:Landroid/widget/ImageView;

    const v0, 0x7f0c07d7

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/im/gallery/a/h;->b:Landroid/widget/ImageView;

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/a/a;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iget-object v2, v0, Lcom/waiqin365/lightapp/im/gallery/a/k;->a:Ljava/lang/String;

    iget-object v3, v1, Lcom/waiqin365/lightapp/im/gallery/a/h;->a:Landroid/widget/ImageView;

    invoke-virtual {v3, v2}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/gallery/a/a;->c:Lcom/waiqin365/lightapp/im/gallery/a/d;

    iget-object v4, v0, Lcom/waiqin365/lightapp/im/gallery/a/k;->c:Ljava/lang/String;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/gallery/a/k;->a:Ljava/lang/String;

    new-instance v5, Lcom/waiqin365/lightapp/im/gallery/a/b;

    invoke-direct {v5, p0, v1, v2}, Lcom/waiqin365/lightapp/im/gallery/a/b;-><init>(Lcom/waiqin365/lightapp/im/gallery/a/a;Lcom/waiqin365/lightapp/im/gallery/a/h;Ljava/lang/String;)V

    invoke-virtual {v3, v4, v0, v5}, Lcom/waiqin365/lightapp/im/gallery/a/d;->a(Ljava/lang/String;Ljava/lang/String;Lcom/waiqin365/lightapp/im/gallery/a/g;)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    if-nez v0, :cond_1

    iget-object v0, v1, Lcom/waiqin365/lightapp/im/gallery/a/h;->a:Landroid/widget/ImageView;

    const v2, 0x7f020252

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/a/a;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/im/gallery/a/k;->b:Z

    if-eqz v0, :cond_2

    iget-object v0, v1, Lcom/waiqin365/lightapp/im/gallery/a/h;->b:Landroid/widget/ImageView;

    const v2, 0x7f020315

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_2
    iget-object v0, v1, Lcom/waiqin365/lightapp/im/gallery/a/h;->b:Landroid/widget/ImageView;

    new-instance v2, Lcom/waiqin365/lightapp/im/gallery/a/c;

    invoke-direct {v2, p0, p1, v1}, Lcom/waiqin365/lightapp/im/gallery/a/c;-><init>(Lcom/waiqin365/lightapp/im/gallery/a/a;ILcom/waiqin365/lightapp/im/gallery/a/h;)V

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object p2

    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/gallery/a/h;

    move-object v1, v0

    goto :goto_0

    :cond_1
    iget-object v2, v1, Lcom/waiqin365/lightapp/im/gallery/a/h;->a:Landroid/widget/ImageView;

    invoke-virtual {v2, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_1

    :cond_2
    iget-object v0, v1, Lcom/waiqin365/lightapp/im/gallery/a/h;->b:Landroid/widget/ImageView;

    const v2, 0x7f020314

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2
.end method
